package response

import "github.com/gin-gonic/gin"

func Response(c *gin.Context, code int, message string, data interface{}) {
	c.JSON(code, gin.H{
		"code":    code,
		"message": message,
		"data":    data,
	})
}

type UserLoginResponse struct {
	Token    string `json:"token"`
	UserId   int    `json:"userId"`
	Tel      string `json:"tel"`
	Username string `json:"username"`
	Password string `json:"password"`
}
